#ifndef TYPEDEFINE_H

#define TYPEDEFINE_H

#include<stdio.h>

#define DATAVIEWBUFFERLENTH		8192 /* (1024*8)*/
#define INVALID_VERSION				0xFF /* */

#define VALUE_MAX_LENGTH_IN_BYTE   8

#define UI_CLIENT_ID				0xFFFFFFFF

//#define NULL                                ((void *)0)

#define assert(x) ({ \
    if (!(x)) { \
        printf("<assertion failed :%s:%d> \n", __FILE__, __LINE__);\
        while(1); \
    } \
})

//#define     SYSTEM_WITH_ES_OPERATORION

typedef unsigned char                           	u8;
typedef  char                           	            s8;

typedef unsigned short                          	u16;
typedef short                          	        s16;

typedef unsigned long                            u32;
typedef long	                           		 s32;

typedef unsigned long long                           u64;
typedef long long                     		 s64;

#define TestDataLenth() { \
        printf("u8 lenth is %d . \n",sizeof(u8));\
        printf("s8 lenth is %d . \n",sizeof(s8));\
                                                            \
        printf("u16 lenth is %d . \n",sizeof(u16));\
        printf("s16 lenth is %d . \n",sizeof(s16));\
                                                            \
        printf("u32 lenth is %d . \n",sizeof(u32));\
        printf("s32 lenth is %d . \n",sizeof(s32));\
                                                            \
        printf("u64 lenth is %d . \n",sizeof(u64));\
        printf("s64 lenth is %d . \n",sizeof(s64));\
}



#endif
